#include <iostream>
#include <string>
#include "configReaderTest.h"


CPPUNIT_TEST_SUITE_REGISTRATION (ConfigReaderTest);

void ConfigReaderTest::setUp(void)
{
	reader = new sp_core::ConfigReader("valid.conf");

}

void ConfigReaderTest::tearDown(void)
{
	delete reader;
}


void  ConfigReaderTest::testValidVerifyConfig(void)
{
	CPPUNIT_ASSERT(reader->VerifyConfig());
}


void  ConfigReaderTest::testInvalidVerifyConfig(void)
{
	// This test case requires an invalid config and therefore uses its own reader object!
	
	sp_core::ConfigReader reader("invalid.conf");
	
	CPPUNIT_ASSERT(!reader.VerifyConfig());
}


void  ConfigReaderTest::testGetSeparators(void)
{
	std::string separators = reader->GetSeparators();

	CPPUNIT_ASSERT(separators.compare("=;") == 0);
}
	

void  ConfigReaderTest::testGetOption0(void)
{
	CPPUNIT_ASSERT(true);	

}

void  ConfigReaderTest::testGetOption1(void)
{
	CPPUNIT_ASSERT(true);
}

